From bf68a0f789adf1bcafb4c5e203b1ef4591592b3d Mon Sep 17 00:00:00 2001 From: "sos22@labyrinth.cl.cam.ac.uk" Date: Mon, 7 Jul 2003 09:31:18 +0000 Subject: [PATCH] bitkeeper revision 1.281 (3f093de6OMoWYaQ83pJoLbC33xt0sA) This shouldn't have been checked in in the first place... --- .rootkeys | 1 - .../xeno/drivers/block/xl_physdisk_proc.c~ | 94 ------------------- 2 files changed, 95 deletions(-) delete mode 100644 xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_physdisk_proc.c~ diff --git a/.rootkeys b/.rootkeys index 4bc1f0a3f1..68581313de 100644 --- a/.rootkeys +++ b/.rootkeys @@ -507,7 +507,6 @@ 3e67f822FOPwqHiaRKbrskgWgoNL5g xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_block.h 3e677190SjkzJIvFifRVeYpIZOCtYA xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_ide.c 3f045897EIYU5l5jxFBpeF1Z0ZOTwA xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_physdisk_proc.c -3f045a16wW57GFQ3r3Ta2cJOo1ierQ xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_physdisk_proc.c~ 3e677193nOKKTLJzcAu4SYdbZaia8g xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_scsi.c 3e676eb5RXnHzSHgA1BvM0B1aIm4qg xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_segment.c 3e5d129aDldt6geU2-2SzBae34sQzg xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_segment_proc.c diff --git a/xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_physdisk_proc.c~ b/xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_physdisk_proc.c~ deleted file mode 100644 index 6c76bd5887..0000000000 --- a/xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_physdisk_proc.c~ +++ /dev/null @@ -1,94 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include - -static struct proc_dir_entry *phd; - -extern int xenolinux_control_msg(int operration, char *buffer, int size); - -static ssize_t proc_read_phd(struct file * file, char * buff, size_t size, loff_t * off) -{ - physdisk_probebuf_t *buf; - int res; - - if (size != sizeof(physdisk_probebuf_t)) - return -EINVAL; - - buf = kmalloc(sizeof(physdisk_probebuf_t), GFP_KERNEL); - if (!buf) - return -ENOMEM; - - if (copy_from_user(buf, buff, size)) { - kfree(buf); - return -EFAULT; - } - - printk("max aces %x\n", buf->n_aces); - - res = xenolinux_control_msg(XEN_BLOCK_PHYSDEV_PROBE, (void *)buf, - sizeof(physdisk_probebuf_t)); - - printk("max aces %x\n", buf->n_aces); - - if (res) - res = -EINVAL; - else { - res = sizeof(physdisk_probebuf_t); - if (copy_to_user(buff, buf, sizeof(physdisk_probebuf_t))) { - res = -EFAULT; - } - } - kfree(buf); - return res; -} - -static int proc_write_phd(struct file *file, const char *buffer, - size_t count, loff_t *ignore) -{ - char *local; - int res; - - if (count != sizeof(xp_disk_t)) - return -EINVAL; - - local = kmalloc(count + 1, GFP_KERNEL); - if (!local) - return -ENOMEM; - if (copy_from_user(local, buffer, count)) { - res = -EFAULT; - goto out; - } - local[count] = 0; - - res = xenolinux_control_msg(XEN_BLOCK_PHYSDEV_GRANT, local, count); - if (res == 0) - res = count; - else - res = -EINVAL; - out: - kfree(local); - return res; -} - -static struct file_operations proc_phd_fops = { - read : proc_read_phd, - write : proc_write_phd -}; - -int __init xlphysdisk_proc_init(void) -{ - phd = create_proc_entry("xeno/dom0/phd", 0644, NULL); - if (!phd) { - panic("Can\'t create phd proc entry!\n"); - } - phd->data = NULL; - phd->proc_fops = &proc_phd_fops; - phd->owner = THIS_MODULE; - - return 0; -} -- 2.30.2